
<div class="right">

	<div id="columns1">
<div class="nav">
<form action="<?=$this->config->item('site_url');?>OriginAnalysis/showbyrefer" method="post" onsubmit="return selectdatesearch();" name="date_search_form">
	<ul>
		<li <?php if ($search_day ==0){ ?>class="current" <?php } ?>><span><a href="<?=$this->config->item("site_url");?>OriginAnalysis/showbyrefer">今日</a></span></li>
        <li <?php if ($search_day ==1){ ?>class="current" <?php } ?>><span><a href="<?=$this->config->item("site_url");?>OriginAnalysis/showbyrefer?search_day=1">昨日</a></span></li>
		<li <?php if ($search_day ==7){ ?>class="current" <?php } ?>><span><a href="<?=$this->config->item("site_url");?>OriginAnalysis/showbyrefer?search_day=7">最近七天</a></span></li>
		<li <?php if ($search_day ==30){ ?>class="current" <?php } ?>><span><a href="<?=$this->config->item("site_url");?>OriginAnalysis/showbyrefer?search_day=30">最近三十天</a></span></li>
		<li><span>从</span></li>
		<li><span class="demo"><input type="text" size="10" maxlength="8" readonly="readonly" value="<?=$search_sdate?>" id="datepicker" name="search_sdate"></span></li>
		<li><span>到</span></li>
		<li><span class="demo"><input type="text" id="datepicker1" size="10" value="<?=$search_edate?>" maxlength="8" name="search_edate"></span></li>
		<li class="lineNone"><span><input type="button" value="查看" style="border: 1px #FFFFFF solid; background: #efefef;style=cursor:pointer" onclick="selectdatesearch()"></span></li>
	</ul>
</form>	
</div>	
		<ul id="column2" class="main" >
			<li class="widget1 color-green1" id="widget12" style="visibility:hidden;">
				<div class="widget1-head" style="height:0px;">
					<h3>
						来路页面统计图
					</h3>
				</div>

			</li>
			<li class="widget1 color-green1" id="widget13">
				<div class="widget1-head">
					<h3>
						来路页面
					</h3>
				</div>

				<div class="widget1-content">
					<table cellspacing="0" cellpadding="0">
						<tr>
							<th>
								序号
							</th>
							<th width="300px;">
								页面地址
							</th>
							<th>
								来访次数
							</th>
							<th>
								独立访客
							</th>
							<th>
								独立IP
							</th>
							<th>
								新独立访客
							</th>
							
						</tr>
								<?php 
								$i=0;
								foreach($data as $key=>$res):
								$i++;
								?>
									<tr>
										<td>
											<?php echo $i; ?>
										</td>
										<td width="10">
											<?php if($key){?> <a href="<?=$key?>" target="_blank"><?=$key?></a><?php }else{ ?>收藏夹或地址栏进入<?php } ?>
										</td>
										<td>
											<?=$res['arriveCount']?>&nbsp;
										</td>
										<td>
											<?=@$res['vids']?>&nbsp;
										</td>
										<td>
											<?=$res['ip']?>
										</td>
										<td>
											<?=$res['isnew']?>
										</td>
									
									</tr>
								<?php endforeach; ?>
					</table>
				</div>
			</li>
		</ul>
	</div>
</div>
</div>
</div>
</div>
</div>
<script type="text/javascript" src="<?=$this->config->item('js_url');?>date.js"></script>